import request from "@/utils/request"

//列表查询
export const queryAllApi = () => request.get('/depts')

//添加
export const addApi = (data) => request.post('/depts', data)
/**回显 */
export const queryInfoApi = (id) => request.get(`/depts/${id}`)

//修改部门
export const updateApi = (data) => request.put('/depts', data)
//删除部门
export const deleteDeptApi = (id) => request.delete(`/depts?id=${id}`)